package fr.sedoo.sos.domain;

import java.util.ArrayList;
import java.util.Date;

public class Serie extends IsLocalized{
	
	private Phenomenon phenomenon;
	private Date beginDate;
	private Date endDate;
	private ArrayList<SerieItem> items = new ArrayList<SerieItem>();
	
	private Sensor sensor;

	@Override
	public IsLocalized getContainer() {
		return sensor;
	}

	public Sensor getSensor() {
		return sensor;
	}

	public void setSensor(Sensor sensor) {
		this.sensor = sensor;
	}

	public Phenomenon getPhenomenon() {
		return phenomenon;
	}

	public void setPhenomenon(Phenomenon phenomenon) {
		this.phenomenon = phenomenon;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public void addItem(SerieItem item) 
	{
		items.add(item);
	}
	
	
	
}
